class Cricle {
    double radius;
    public Cricle(double radius){
        this.radius = radius;
    }
    public double getArea(){
        return 3.14*this.radius*this.radius;
    }
    public double getPerimeter(){
        return 2*2.14*this.radius;
    }
}

class Cylinder extends Cricle {
    double height;
    public Cylinder(double radius, double height){
        super(radius);
        this.height = height;
    }

    public Cylinder(double radius) {
        super(radius);
    }

    public double getVolume(){
        return 3.14*radius*radius*height;
    }
}

public class Test {
    public static void main(String[] args) {

       Cricle cricle = new Cricle(3);
        System.out.println(cricle.getArea());


        Cylinder cylinder = new Cylinder(3,3);
        System.out.println(cylinder.getVolume());


    }

}